from django.db import models

class TaskLog(models.Model):
    date = models.CharField(max_length=100)
    time = models.CharField(max_length=100)
    content = models.TextField()
    next_action = models.TextField()

class Task(models.Model):
    task_type = models.CharField(max_length=100)
    task_id = models.CharField(max_length=100, unique=True)
    task_title = models.CharField(max_length=200)
    assignee = models.CharField(max_length=100)
    status = models.CharField(max_length=50)
    highlight = models.CharField(max_length=100)
    dev_comment = models.TextField()
    next_action = models.TextField()
    logs = models.ManyToManyField(TaskLog, blank=True)
